
package oreilly.command.cooker;

/**
 * 模擬廚師<br>
 * <br>
 * Copyright: Copyright (c) 2002-2007<br>
 * Company: E885 有限公司
 * 
 * @author Eric Gau(gau168.gau@msa.hinet.net)
 * @version 1.0
 */
public class Cooker
{
	/**
	 * 廚師的名字
	 */
	private String name;

	/**
	 * constructor
	 * 
	 * @param name 廚師名字
	 */
	public Cooker( String name )
	{
		this.name = name;
	}

	/**
	 * 廚師做出食物Ａ
	 */
	public void doFoodA()
	{
		System.out.println( name + " was cooking food_A." );
	}

	/**
	 * 廚師做出食物Ｂ
	 */
	public void doFoodB()
	{
		System.out.println( name + " was cooking food_B." );
	}

	/**
	 * 取得到廚師的名字
	 * 
	 * @return 廚師的名字
	 */
	public String getName()
	{
		return name;
	}
}
